package com.sunlands.zlcx.usercenter.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author zhaocg
 * @create 2019/8/7 11:47
 */
@Data
@NoArgsConstructor
public class DurationSummaryVO implements Serializable {


    private static final long serialVersionUID = -1674210819934596103L;
    private Integer leaderBoard; //排行

    private Long userId;

    private Long sumMinutes; //总时长

    private Long frequency;  //打卡次数

    private Date dateTime;  //日期


    public DurationSummaryVO(Integer userId, BigDecimal sumMinutes , BigInteger frequency , Date dateTime){
        super();
        this.userId = Long.parseLong(String.valueOf(userId));
        this.sumMinutes = Long.valueOf(sumMinutes.toString());
        this.frequency = Long.parseLong(frequency.toString());
        this.dateTime = dateTime;
    }

}
